home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / oath.lha / oath / test / bisum.cc < prev    next >
C/C++ Source or Header  |  1991-08-29  |  481b  |  20 lines

  1. #include "oath/bigInteger.h"
  2.  
  3. #include <fstream.h>
  4.  
  5. main()
  6.    {ifstream File("biread.obj");
  7.  
  8.     integerA X = integerA::isa(objA::import(File));
  9.     integerA Y = integerA::isa(objA::import(File));
  10.  
  11.     cout << "   X = " << X << endl;
  12.     cout << "   Y = " << Y << endl;
  13.  
  14.     cout << "X+=Y = " << (X+=Y) << endl;
  15.     cout << "X+=Y = " << (X+=Y) << endl;
  16.     cout << "X+=Y = " << (X+=Y) << endl;
  17.     cout << "X+=Y = " << (X+=Y) << endl;
  18.     cout << "X+=Y = " << (X+=Y) << endl;
  19.    }
  20.